package com.situ.day6;

import org.junit.Test;

import java.util.Scanner;

public class Demo {

    @Test
    public void test1() {
        //如果使用的类在同一个包下面是不需要import的
        Student student = new Student();
        //student.id = 1;
        //student.name = "zhangsan";
        //student.age = 350;
        student.setId(1);
        student.setName("张三");
        student.setAge(140);
        System.out.println(student);

        int id = student.getId();
        String name = student.getName();
        int age = student.getAge();

        //java.lang这里面放了java的常用的核心类，这个包是不需要import的
        String str = "Java";
        //java.util
        Scanner scanner = null;
    }

    @Test
    public void test2() {
        Student student = new Student(1, "lisi", 23);
        System.out.println(student);
    }
}
